class Foo {
  open function foo() = 42
}

res1 = new Foo {}
